﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Base.Users
{
	public class Role
	{
		private System.Guid idField;

		private string nameField;

		/// <remarks/>
		public System.Guid Id
		{
			get
			{
				return this.idField;
			}
			set
			{
				if ((this.idField != value))
				{
					this.idField = value;
					this.RaisePropertyChanged("Id");
				}
			}
		}

		/// <remarks/>
		public string Name
		{
			get
			{
				return this.nameField;
			}
			set
			{
				if ((this.nameField != value))
				{
					this.nameField = value;
					this.RaisePropertyChanged("Name");
				}
			}
		}

		#region EventHandler

		public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

		protected void RaisePropertyChanged(string propertyName)
		{
			System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
			if ((propertyChanged != null))
			{
				propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
			}
		}

		#endregion
	}
}
